#include <AST/expr/control/ContinueAST.hpp>
#include <global.hpp>

Continue::Continue() {
}

llvm::Value *Continue::codegen() {
    if (builder.GetInsertBlock()->getTerminator() != nullptr)
        return logWarning("Continue::codegen: \"continue\" is ignored due to"
                          " a terminator is found");
    return builder.CreateBr(theScope.getContinuePoint());
}